package com.cjj.common.entity.po.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 管理员表
 * </p>
 *
 * @author BrownC_
 * @since 2021-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TCategoryMenu对象", description="管理员表")
public class TCategoryMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一uid")
    @TableId(value = "uid", type = IdType.AUTO)
    private String uid;

    @ApiModelProperty(value = "菜单名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "菜单级别")
    @TableField("menu_level")
    private int menuLevel;

    @ApiModelProperty(value = "简介")
    @TableField("summary")
    private String summary;

    @ApiModelProperty(value = "父uid")
    @TableField("parent_uid")
    private String parentUid;

    @ApiModelProperty(value = "url地址")
    @TableField("url")
    private String url;

    @ApiModelProperty(value = "图标")
    @TableField("icon")
    private String icon;

    @ApiModelProperty(value = "排序字段，越大越靠前")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private int status;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty(value = "是否显示 1:是 0:否")
    @TableField("is_show")
    private int isShow;

    @ApiModelProperty(value = "菜单类型 0: 菜单   1: 按钮")
    @TableField("menu_type")
    private int menuType;

    @ApiModelProperty(value = "是否跳转外部链接 0：否，1：是")
    @TableField("is_jump_external_url")
    private int jumpExternalUrl;

    @TableField(exist = false)
    private List<TCategoryMenu> categoryMenuList;


}
